ownerRating = function(intOfflineId){
	$.getJSON(				
		HOST_VFRIEND + 'ajax/uioffrate?type=1&offlineid='+intOfflineId+'&callback=?',		
		function(response) {					
			var msg	= response['msg'];
			if(response['error'] == 0) {				
				$.blockUI({
					message: msg, 
					css: { 
						textAlgin:'left',
						background:'none',
						border: 'none',
						width:'600px', 
						top: (($(window).height()-400)/2) + 'px', 
						left:(($(window).width()-600)/2) + 'px',
						cursor: 'default',
						zIndex: '10001'
					},
					overlayCSS: {
						cursor: 'default',
						zIndex: '10000'
					}
				});
				if($('#scrollPane') != undefined) {
					$('#scrollPane').jScrollPane();	
				}
			} else {
				alert(msg);
			}
		}
	);
}
joinerRating = function(intOfflineId) {
	$.getJSON(				
		HOST_VFRIEND + 'ajax/uioffrate?type=2&offlineid='+intOfflineId+'&callback=?',		
		function(response) {					
			var msg	= response['msg'];
			if(response['error'] == 0) {				
				$.blockUI({
					message: msg, 
					css: { 
						textAlgin:'left',
						background:'none',
						border: 'none',
						width:'400px', 
						top: (($(window).height()-300)/2) + 'px', 
						left:(($(window).width()-400)/2) + 'px',
						cursor: 'default',
						zIndex: '10001'
					},
					overlayCSS: {
						cursor: 'default',
						zIndex: '10000'
					}
				});				
			} else {
				alert(msg);
			}
		}
	);
}
rating = function(intOjoinId,strUserId,intOfflineId,intPoint,strToken) {	
	$('#dlgOfflineRate .tips').hide();
	$('#dlgOfflineRate .loading').show();
	$.getJSON(				
		HOST_VFRIEND + 'offline/rate?aj=1&ojoinid='+intOjoinId+'&offlineid='+intOfflineId+'&uid='+strUserId+'&po='+intPoint+'&token='+strToken+'&callback=?',	
		function(response) {
			var msg		= response['msg'];
			var error	= response['error'];
			$('#dlgOfflineRate .loading').hide();
			if(error == 0) {	
				$('#dlgOfflineRate .tips').show().html(msg);
				if(response['link'] == '') {
					$('#joinList').html(response['data']);	
				} else {
					document.location.href = response['link'];
				}
				
			}
			else {
				alert(msg);
			}
		}
	);		
}